package cn.cycleif.entity;

import cn.cycleif.enums.CommonStatusEnum;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Date: 25/2/12-22:51
 * @Desc:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Comment {

  @TableId(type = IdType.AUTO)
  private Integer id;
  private Integer userId;
  private Integer replyUserId;
  private Integer objectId; // answerId
  private Integer questionId;
  private Integer voteCount;

  private CommonStatusEnum status;

  private String content;

  @TableField(fill = FieldFill.INSERT)
  private LocalDateTime createAt;
  @TableField(fill = FieldFill.UPDATE)
  private LocalDateTime updateAt;
}
